package com.gitee.sample.mvp.droidmvp.login;

import com.gitee.sample.mvp.droidmvp.base.BasePresenter;
import com.gitee.sample.mvp.droidmvp.base.BaseView;

public interface LoginContract {

    interface View extends BaseView<Presenter> {
        String getUserEmail();

        String getPasword();

        boolean isEmailValid(String email);

        boolean isPasswordValid(String password);

        void showLoginProgress(boolean show);

        boolean setEmailError(String error);

        boolean setPasswordError(String error);

        void resetEditView();

        void toMainActivity();

        void showFailedError(String message);
    }

    interface Presenter extends BasePresenter {
        void login();

        void reset();
    }

}
